package com.wlj.rabbit.util;

/**
 * @ClassName ResultCodeEumn
 * @Description 请求状态封装枚举类
 * @Author wlj
 * @Date 2018/4/28  16:41
 * @Version 1.0
 */

public enum ResultCodeEumn {

    SUCCESS(200,"操作成功"),
    SENDOK(200,"发送成功"),

    FAIELD(201,"操作失败"),
    SENDFAIL(201,"发送失败"),

    NOT_FOUND(202,"记录不存在"),
    
    PARAMETER_ERROR(400,"参数异常"),
    
    WORKFLOW_ERROR(501,"工作流异常"),
    
    MESSAGE_ERROR(601,"消息发送异常"),
    
    DUPLICATE_LOGIN(2002,"账号已在其它地方登录"),

    UN_LONGIN(1000000,"未登录"),

    SESSION_OUT(-1,"登录过期");


    Integer code;

    String desc;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    ResultCodeEumn(Integer code, String desc){
        this.code = code;
        this.desc = desc;
    }
}